<?php
class AjaxAction extends CommonAction {
	//查询今日免费添加次数
	public function getAddTimes (){
		$Keywords = M('Keywords');
		if($Keywords ->where('user_id = '.$_SESSION['user']['user_id'].' AND add_time > '.strtotime(date('Y-m-d')))->find())
			echo 0;
		else
			echo 1;
	}
}